package lookas.track;

public class Point{

    double lat;
    double lon;

    public Point(){}

    public Point(double lat, double lon){
        this.lat = lat;
        this.lon = lon;
    }

    @Override
    public String toString(){
        return lat + ", " + lon;
    }

    public String toXML(){
        String ret;
        ret = String.format("<lat>%s</lat>", String.valueOf(lat));
        ret += String.format("<lon>%s</lon>", String.valueOf(lon));
        return ret;
    }
}
